<template>
    <dd-form @submit="submit" @reset="reset">
        <dd-input />
        <dd-input />
        <dd-button type="submit">提交</dd-button>
        <dd-button type="reset">重置</dd-button>
    </dd-form>
</template>

<script setup>
function submit(valid) {
    console.log(valid === true);
}
function reset() {
    console.log("reset")
}
</script>
